/*
 *
 *      Copyright (c) 2018-2025, proj All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the pig4cloud.com developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: proj
 *
 */

package com.ykht.proj.coupon.api.feign;

import com.ykht.proj.common.core.constant.SecurityConstants;
import com.ykht.proj.common.core.constant.ServiceNameConstants;
import com.ykht.proj.coupon.entity.CnCouponLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 门店api
 * @author proj
 * @date 2018/6/22
 */
@FeignClient(contextId = "remoteCouponLogService", value = ServiceNameConstants.COUPON_SERVICE)
public interface RemoteCouponLogService {


	/**
	 * 获取C端用户是否是新客户（品牌/门店）
	 * @param cnCouponLog
	 * @return
	 */
	@PostMapping("cncouponlog/getBrandShopCustomer")
	List<CnCouponLog> getBrandShopCustomer(@RequestBody CnCouponLog cnCouponLog);
	@GetMapping("cncouponlog/sendMsgFlag")
	Boolean sendMsgFlag(@RequestParam("couponId") Long couponId, @RequestParam("personId")Long personId,@RequestHeader(SecurityConstants.FROM) String from);


}
